package com.chat.entry.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.chat.entry.enums.FriendStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 好友表
 * </p>
 *
 * @author author
 * @since 2025-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("friend")
@ApiModel(value="Friend对象", description="好友表")
public class Friend implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "当前用户id")
    private Integer userId;

    @ApiModelProperty(value = "好友id")
    private Integer friendId;

    @ApiModelProperty(value = "打招呼")
    private String doGreet;

    @ApiModelProperty(value = "好友申请状态: 0=待验证, 1=已同意, 2=已拒绝")
    private FriendStatusEnum status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creataTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
